import type { AddressItem } from '@/types/address'
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useAddressStore = defineStore('address', () => {
  // 存储收货信息
  const addressInfo = ref<AddressItem>()
  // 修改收货信息
  const changeAddressInfo = (val: AddressItem) => {
    addressInfo.value = val
  }
  return {
    addressInfo,
    changeAddressInfo
  }
})
